package ClassPackage;


import java.io.Serializable;
import javax.persistence.Id;
import org.hibernate.annotations.Entity;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Pipaillon
 */
@Entity
public class Genre implements Serializable{

    @Id
    private int ID;

    private String name;

   public Genre()
    {
        
    }
    public Genre(String nom)
    {
        name=nom;
    }
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

     /**
     * @return the ID
     */
    public int getID() {
        return ID;
    }

    /**
     * @param ID the ID to set
     */
    public void setID(int ID) {
        this.ID = ID;
    }



}
